package com.hung.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Administrator on 2017/4/20.
 */
@FeignClient(value = "user-service",fallback = ComputeClientHystrix.class)
public interface TestClient {

    @RequestMapping(method = RequestMethod.GET, value = "/api/userController/getUser")
    public String getUser(@RequestParam("userName") String username);
}
